#ifndef __GP_TIMER_H__
#define __GP_TIMER_H__

#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include "driver/gpio.h"
#include "driver/gptimer.h"
#include "esp_log.h"
#include "esp_attr.h"  // 定义IRAM_ATTR属性
#include "led.h"

#define IS_ATUO_LOAD 0




/* 参数引用 */
extern uint16_t timer_count;
/* 函数声明 */
void gptim_int_init(uint16_t counts, uint32_t resolution); /* 初始化通用定时器 */
/*设置通用定时器回调*/
bool  gptimer_callback(gptimer_handle_t timer,const gptimer_alarm_event_data_t *edata,void *user_data); 













#endif

